<%--
  Created by IntelliJ IDEA.
  User: zhaoyang
  Date: 2020/7/31
  Time: 2:57 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>输出闰年</title>
</head>
<body>
<%--2：用jsp在网页中输出1900-2020之间的闰年--%>
<%
    for (int i = 1900; i <= 2020; i++) {
        if ((i % 100 == 0 && i % 400 == 0) || (i % 100 != 0 && i % 4 == 0)) {
            out.println("<h3>"+i + "年是闰年；</h3>");
        }
    }
%>
</body>
</html>
